package com.novel.constants;


import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 *  controller请求结果枚举类
 *
 * @author tanghao
 * @date 2021/7/31
 */
@Getter
@AllArgsConstructor
public enum ResultEnum {

    /**
     * 请求结果返回情况如下
     */
    SUCCESS(200, "请求成功"),
    FAILURE(101, "请求失败，请查询具体原因"),
    PARAM_ERROR(102, "请求参数异常"),
    VERIFY_ERROR(103, "参数校验失败"),
    NO_FOUND_info(104, "查询信息不存在"),
    INNER_ERROR(105, "处理异常"),
    SAVE_DB_ERROR(106, "保存数据失败"),
    UPDATE_DB_ERROR(107, "更新数据失败"),
    NOT_FOUND(404, "请求失败，路径不存在，请检查路径是否正确"),
    AUTH_FAIL(400,"请先登录")
    ;


    private final Integer code;
    private final String message;

}